<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/8
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h3>获取Cookie</h3>


    <%
        Cookie[] cookies = request.getCookies();
        for (Cookie cookie : cookies) {
           String ck = "name:"+cookie.getName()+"&nbsp;&nbsp; value:"+cookie.getValue()+"</br>";

           out.print(ck);
        }
    %>




</body>
</html>
